<include file="public:header" />
<div class="allpagetop">举报管理<strong>/</strong>举报列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">举报</div>
				<div class="topnav">
			       <!--  <a href="{:RU('question/add')}" <if condition="ACTION_NAME eq 'add'">class="select"</if>>添加</a>
					  <a href="{:RU('question/lists')}" <if condition="ACTION_NAME eq 'lists'">class="select"</if>>列表</a> -->
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  <div class="seltpye_x">
        <div class="left">举报类型</div>
        <div class="right">
        <a href="{:P(array('type'=>''))}" <if condition="$Think.get.type eq ''">class="select"</if>>不限</a>
        <a href="{:P(array('type'=>'1'))}" <if condition="$Think.get.type eq '1'">class="select"</if>>提问</a>
        <a href="{:P(array('type'=>'2'))}" <if condition="$Think.get.type eq '2'">class="select"</if>>回答</a>
        <a href="{:P(array('type'=>'3'))}" <if condition="$Think.get.type eq '3'">class="select"</if>>主题</a>
        <a href="{:P(array('type'=>'4'))}" <if condition="$Think.get.type eq '4'">class="select"</if>>回贴</a>
        <a href="{:P(array('type'=>'5'))}" <if condition="$Think.get.type eq '5'">class="select"</if>>文章</a>
        <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
	
	
	<div class="seltpye_x">
        <div class="left">审核状态</div>
        <div class="right">
					<a href="{:P(array('audit'=>''))}" <if condition="$Think.get.audit eq ''">class="select"</if>>全部</a>
        <a href="{:P(array('audit'=>'0'))}" <if condition="$Think.get.audit eq '0'">class="select"</if>>未审核</a>
        <a href="{:P(array('audit'=>'1'))}" <if condition="$Think.get.audit eq '1'">class="select"</if>>已通过</a>
        <a href="{:P(array('audit'=>'-1'))}" <if condition="$Think.get.audit eq '-1'">class="select"</if>>未通过</a>
         
        <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
	
    <form id="form1" name="form1" method="post" action="{:RU('article/delete')}">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:50%;">
				<label id="chkAll" class="left_txt_td"><input type="checkbox" name="chkAll"  id="chk" title="全选/反选" />内容</label>
			</div>
		<div class="td2 admin_list_center" style=" width:15%;">审核状态</div>
		<!--<div class="td4" style=" width:10%;">封面</div>-->
		<div class="td3" style=" width:8%;">举报类型</div>
		<!--<div class="td4" style=" width:10%;">点击/赞</div>-->
		<div class="td2" style=" width:14%;">举报人</div>
		<div class="td3" style=" width:5%;">举报时间</div>
		<div class="td5" style=" width:7%;">
		<div class="admin_list_right">操作</div>
		</div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <volist name="lists.list" id="list">
					   <div class="admin_list_tr link_bk">
						<div class="td1" style=" width:50%;">
						  <div class="left_txt_td striking">
								<input name="id[]" type="checkbox" id="id" value="{$list.id}"  />
								<a href="javascript:;" id="{$list.id}" class="J_show">{$list.content}</a>
						  </div>
						</div>
						<div class="td2 admin_list_center" style=" width:15%;">
						{$list.audit_str}
						</div>
						<div class="td3" style=" width:8%;">
						{$list.type_str}
						</div>
						 
						 
						<div class="td3" style=" width:14%;">
						<span class="userLV">LV{$list.user.exp_lv}</span><a href="{$list.user.user_url}" target="_blank" >{$list.user.username}</a>
						</div>
						<div class="td3" style=" width:5%;">{$list.addtime_str}</div>
					   
						<div class="td5 edit" style=" width:7%;">
									  <div class="admin_list_right link_blue">
									 <a class="gray" href="{:RU('report/delete',array('id'=>$list['id']))}" onclick="return confirm('你确定要删除吗？')">删除</a>
									  </div>
						</div>
					  <div class="clear"></div>
					  </div>
	   </volist>
	  
	
	   <div id="J_audit_from"></div>
      
  </form>
  
  
    <empty name="lists.list">
    <div class="admin_list_no_info">没有任何信息！</div>
    </empty>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
				 <input type="button"  class="admin_submit" value="审核" id="J_btn_audit"/>
				 <input type="button"  class="admin_submit" id="J_btn_del"   value="删除"/>
			  </div>
			  
				<div class="footso">
					<form action="{:RU('report/lists')}" method="get">
				<div class="sobox">
					<input name="key" type="text"  class="sinput" maxlength="10" value="{$Think.get.key}"/>
					<input name="key_type" id="J_key_type_id" type="hidden" value="{$Think.get.key_type|default="1"}" />
					<input name="key_type_cn" id="J_key_type_cn" type="hidden" value="{$Think.get.key_type_cn|default="内容"}" />
					<input name="" type="submit" value=""  class="sobtn"/>
					<div class="sotype" id="J_key_click">{$Think.get.key_type_cn|default="内容"}</div>
							
							
							
							
							
							<div class="mlist" id="J_mlist">
							<ul>
							<li id="1" title="内容">内容</li>
							<li id="2" title="UID">UID</li>
							</ul>
							</div>
						</div>
						</form>
			  </div>
	</div>
	
 
    <div class="uupage">{$lists.page}</div>
</div>
<include file="public:footer" />

<div id="J_audit_select" style="display:none">
		<div class="showdialog">
		<div class="dtit">将所选信息审核状态设置为：</div>
		  <div class="dtxt">
		 
						<div class="imgradio">
												<input name="audit" type="hidden" value="1" />
												<div class="radio select" data="1">审核通过</div>
												<div class="clear"></div>
												<div class="radio " data="-1">审核未通过</div>
												<div class="clear"></div>
						</div>
		  </div>
		
	       <div class="dtxt">
		   <input type="button"  class="admin_submit" value="确定选择" id="J_save_audit_btn"/>
		   </div>
	 
	  </div>
</div>
 
<script type="text/javascript">
    $(document).ready(function()
    {	
        //点击批量取删除   
        $("#J_btn_del").click(function(){
            if (confirm('你确定要删除吗？'))
            {
							$("form[name=form1]").attr("action","{:RU('report/delete')}").submit();
            }
        });
		//批量审核弹窗
		$("#J_btn_audit").dialog({
		  DialogAddObj:"#J_audit_from",
		  DialogTitle:"请选择审核状态",
		  DialogContent:"#J_audit_select",
		  DialogContentType:"id"
		});
		//确定审核
		$('#J_save_audit_btn').live('click',function() {
			$("form[name=form1]").attr("action","{:RU('report/audit')}").submit();
		});


		$(".J_show").click(function(){
		    var id = $(this).attr('id');
		    var ajax_url = '{:U("ajax_report_show")}';
		    $.getJSON(ajax_url,{id:id}, function(res){
		        if (res.status == 1) {
                var uuDialog = $(this).Udialog({
                    title: '举报详情',
                    loading: true,
                    footer : true,
                });

                uuDialog.setContent(res.content);
						}
      
				});
    
		});
		
    });
    
    //
	
</script>
</body>
</html>